package rlyy.framework.netty.interceptor;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.FullHttpRequest;

/**
 * 自定义拦截器接口
 * @author yuanqinglong
 * @since 2020/12/8 17:32
 */
public interface MyHandlerInterceptor {


    default boolean preHandle(FullHttpRequest request, ChannelHandlerContext ctx)throws Exception {
        return true;
    }


    default void postHandle(FullHttpRequest request, ChannelHandlerContext ctx) throws Exception {

    }

    default void afterCompletion(FullHttpRequest request, ChannelHandlerContext ctx) throws Exception {
    }
}
